package com.tang.script.result;

public class DefaultScriptResult<T> implements ScriptResult<T> {
    T result;

    public static <T> DefaultScriptResult<T> of(T t) {
        DefaultScriptResult<T> result = new DefaultScriptResult<>();
        result.result = t;
        return result;
    }

    @Override
    public T getResult() {
        return result;
    }
}
